<% provide(:title, '答卷管理') %>
<div class="row">
  <div class="col-lg-12">
    <h1 class="page-header">答卷后台管理</h1>
  </div>
</div>
<div class="row">
  <div class="col-lg-12">
    <div class="panel panel-default">
      <!-- /.panel-heading -->
      <div class="panel-body">
        <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-respondentsple">
          <thead>
          <tr>
            <th>考试学生</th>
            <th>学号</th>
            <th>答题时间</th>
            <th>判卷</th>
            <th>成绩</th>
          </tr>
          </thead>
          <tbody>
          <% @respondents.each do |respondent| %>
              <tr>
                <td class="center"><%= respondent.student_name %></td>
                <td class="center"><%= respondent.student_id %></td>
                <td class="center"><%= respondent.created_at.strftime("%Y-%m-%d %H:%M:%S") %></td>
                <td class="center">
                  <%= link_to '添加成绩', edit_admin_respondent_path(respondent) %>
                </td>
                <td class="center"><%= respondent.results %></td>
              </tr>
          <% end %>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>